﻿using Zenject;
namespace DiIoc.NonMonoBehaviour
{
    public class GameInstaller : MonoInstaller<GameInstaller>
    {
        public override void InstallBindings()
        {
            //bind all life cycle interfaces to DemoScript
            //Container.BindInterfacesAndSelfTo<DemoScript>().AsSingle();

            //bind all life cycle interfaces and DemoScript itself
            //Container.BindInterfacesAndSelfTo<DemoScript>().AsSingle();


            Container.Bind<IInitializable>().To<UsingCorouting>().AsSingle();
            Container.Bind<AsyncProcessor>().FromNewComponentOnNewGameObject().AsSingle();
        }
    }
}

